package com.zcf.pojo;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jj
 * @date 2019/11/22 15:07
 */
@Data
public class Withdraw extends Model<Withdraw> {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userid;
    /**
     * 姓名
     */
    private String name;
    /**
     * 账号
     */
    private String account;
    /**
     * 开户行
     */
    @TableField("opening_bank")
    private String openingBank;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 提现金币
     */
    private Integer money;
    /**
     * 状态
     */
    private Integer state;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
